package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.MaterialProcess;
import com.yiya.model.MaterialProcessCplex;
import com.yiya.model.MaterialProcessCplexModel;
import com.yiya.model.MaterialProcessExample;

public interface MaterialProcessMapper {
    int countByExample(MaterialProcessExample example);

    int deleteByExample(MaterialProcessExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MaterialProcess record);

    int insertSelective(MaterialProcess record);

    List<MaterialProcess> selectByExample(MaterialProcessExample example);

    MaterialProcess selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MaterialProcess record, @Param("example") MaterialProcessExample example);

    int updateByExample(@Param("record") MaterialProcess record, @Param("example") MaterialProcessExample example);

    int updateByPrimaryKeySelective(MaterialProcess record);

    int updateByPrimaryKey(MaterialProcess record);
    
    List<MaterialProcessCplex> selectByModel(MaterialProcessCplexModel record);

	int countByModel(MaterialProcessCplexModel record);
}